import Vue from 'vue'
import VueResource from 'vue-resource'
import VueRouter from 'vue-router'
Vue.use(VueResource)
Vue.use(VueRouter)
import App from './index.vue'

import 'common/stylus/index.styl'
Vue.http.options.emulateJSON = true

const routes = [
  // { path: '/', component: Login },
  // { path: '/register', component: Register }
]

const router = new VueRouter({
  	routes // （缩写）相当于 routes: routes
})

/* eslint-disable no-new */
new Vue({
	router,
	render: h => h(App)
}).$mount('#app')
